package com.giveme5.util;

import org.apache.commons.beanutils.PropertyUtils;

import com.giveme5.common.entity.SimpleResultMessage.CommonResultCode;
import com.giveme5.common.exception.SimpleException;

public class Beans {

	public static void copy(Object dest, Object orig) {
		try {
			PropertyUtils.copyProperties(dest, orig);
		} catch (Exception e) {
			e.printStackTrace();
			throw SimpleException.createException(CommonResultCode.COMMON_COPYERROR);
		}
	}

}
